package o;

import androidx.annotation.CheckResult;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.source.TrackGroupArray;
import o.abr.e;
import o.aim.a;

final class abp {
    private static final a ˏॱ = new a(new Object());
    public final int ʻ;
    public final boolean ʼ;
    public final TrackGroupArray ʽ;
    public final abr ˊ;
    public final long ˋ;
    public volatile long ˋॱ;
    @Nullable
    public final Object ˎ;
    public final long ˏ;
    public volatile long ͺ;
    public final a ॱ;
    public volatile long ॱˊ;
    public final ala ॱॱ;
    public final a ᐝ;

    public static abp ˊ(long j, ala o_ala) {
        return new abp(abr.ˊ, null, ˏॱ, j, -9223372036854775807L, 1, false, TrackGroupArray.ˎ, o_ala, ˏॱ, j, 0, j);
    }

    public abp(abr o_abr, @Nullable Object obj, a aVar, long j, long j2, int i, boolean z, TrackGroupArray trackGroupArray, ala o_ala, a aVar2, long j3, long j4, long j5) {
        this.ˊ = o_abr;
        this.ˎ = obj;
        this.ॱ = aVar;
        this.ˋ = j;
        this.ˏ = j2;
        this.ʻ = i;
        this.ʼ = z;
        this.ʽ = trackGroupArray;
        this.ॱॱ = o_ala;
        this.ᐝ = aVar2;
        this.ॱˊ = j3;
        this.ˋॱ = j4;
        this.ͺ = j5;
    }

    public a ॱ(boolean z, e eVar) {
        if (this.ˊ.ˏ()) {
            return ˏॱ;
        }
        return new a(this.ˊ.ˋ(this.ˊ.ˎ(this.ˊ.ˏ(z), eVar).ʽ));
    }

    @CheckResult
    public abp ˎ(a aVar, long j, long j2) {
        long j3;
        abr o_abr = this.ˊ;
        Object obj = this.ˎ;
        if (aVar.ˊ()) {
            j3 = j2;
        } else {
            j3 = -9223372036854775807L;
        }
        return new abp(o_abr, obj, aVar, j, j3, this.ʻ, this.ʼ, this.ʽ, this.ॱॱ, aVar, j, 0, j);
    }

    @CheckResult
    public abp ˏ(a aVar, long j, long j2, long j3) {
        long j4;
        abr o_abr = this.ˊ;
        Object obj = this.ˎ;
        if (aVar.ˊ()) {
            j4 = j2;
        } else {
            j4 = -9223372036854775807L;
        }
        return new abp(o_abr, obj, aVar, j, j4, this.ʻ, this.ʼ, this.ʽ, this.ॱॱ, this.ᐝ, this.ॱˊ, j3, j);
    }

    @CheckResult
    public abp ˋ(abr o_abr, Object obj) {
        return new abp(o_abr, obj, this.ॱ, this.ˋ, this.ˏ, this.ʻ, this.ʼ, this.ʽ, this.ॱॱ, this.ᐝ, this.ॱˊ, this.ˋॱ, this.ͺ);
    }

    @CheckResult
    public abp ˏ(int i) {
        return new abp(this.ˊ, this.ˎ, this.ॱ, this.ˋ, this.ˏ, i, this.ʼ, this.ʽ, this.ॱॱ, this.ᐝ, this.ॱˊ, this.ˋॱ, this.ͺ);
    }

    @CheckResult
    public abp ˊ(boolean z) {
        return new abp(this.ˊ, this.ˎ, this.ॱ, this.ˋ, this.ˏ, this.ʻ, z, this.ʽ, this.ॱॱ, this.ᐝ, this.ॱˊ, this.ˋॱ, this.ͺ);
    }

    @CheckResult
    public abp ˊ(TrackGroupArray trackGroupArray, ala o_ala) {
        return new abp(this.ˊ, this.ˎ, this.ॱ, this.ˋ, this.ˏ, this.ʻ, this.ʼ, trackGroupArray, o_ala, this.ᐝ, this.ॱˊ, this.ˋॱ, this.ͺ);
    }

    @CheckResult
    public abp ˎ(a aVar) {
        return new abp(this.ˊ, this.ˎ, this.ॱ, this.ˋ, this.ˏ, this.ʻ, this.ʼ, this.ʽ, this.ॱॱ, aVar, this.ॱˊ, this.ˋॱ, this.ͺ);
    }
}
